/**
 * @FileName ConcreteDecorator1.java
 * @Package com.designMode.decorate
 * -------------------------------------
 * @function Please write description of function
 * @Date 2016-1-5 上午10:51:56
 * -------------------------------------
 * Copyright (c) 2016,顾博君 All Rights Reserved.
 */
package com.designMode.decorate;

/**
 * @author 顾博君
 * @ClassName ConcreteDecorator1
 * @Date 2016-1-5 上午10:51:56
 * @Function 具体装饰者
 */

public class ConcreteDecorator1 extends Decorator {
    /**
     * @param _component 被装饰者
     */
    public ConcreteDecorator1(Component _component) {
        super(_component);
    }

    private void method1() {
        System.out.println("method1修饰");
    }

    @Override
    public void operate() {
        this.method1();
        super.operate();
    }
}
